﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using MododorWebAPI.Models;

namespace MododorWebAPI.EntityConfigs
{
    public class ContractEntityConfig : IEntityTypeConfiguration<ContractModel>
    {
        public void Configure(EntityTypeBuilder<ContractModel> builder)
        {
            builder.ToTable("Contract");
            builder.Property(x => x.ContractHours).HasDefaultValue(0);
            builder.Property(x => x.ContractEnable).HasDefaultValue(true);
        }
    }
}
